package com.test.ioc.config;

import com.test.ioc.dao.UserDaoImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author SN
 * @date 2020/4/17 13:21
 * @desc
 */
@Configuration
@ComponentScan(basePackages = {"com.test.ioc.dao"})
public class SpringConfig2 {

//    @Bean(initMethod = "userInit", destroyMethod = "userDestroy")
//    public UserDaoImpl userDaoImpl(){
//        return new UserDaoImpl();
//    }

}